<?php 
if($rslt_jadwal != null) 
{
    if($rslt_jadwal->num_rows() == 0)
    {
        echo '<td colspan="6"><center>-Data Jadwal ditemukan-</center></td>';
    }
    else
    {
?>
<center>
    <label style="font-size: 1.4em;">
        Jadwal Pelajaran 
        T.A <?php echo $rslt_jadwal->row()->tahun_angkatan ?> 
        <br/> 
        <br/> 
    </label>
</center>

<table class="tabel_bordered rnd10" border="1">
    <thead>
        <tr>
            <th>No</th>
            <th>Hari</th>
            <th width="18%">Jam Pelajaran Ke-</th>
            <th>Di Kelas</th>
            <th>Mata Pelajaran</th>
            <th>Ruangan</th>
        </tr>       
    </thead>
<?php
$nomor = 0;
    foreach ($rslt_jadwal->result() as $value_jadwal)
            {
        $nomor++;
                echo '<tr>';
                echo '<td style="text-align:right">'.$nomor.'.</td>';
                echo '<td>'.hari_indo ($value_jadwal->hari).'</td>';
                echo '<td style="text-align:center">'.$value_jadwal->jam_pelajaran.'</td>';
                echo '<td>'.$value_jadwal->nama_kelas.'</td>';
                echo '<td>'.$value_jadwal->nama_pelajaran.'</td>';
                echo '<td>'.$value_jadwal->ruangan.'</td>';
                echo '</tr>';
            }
        }
    }
    ?>
</table>